3.506 \(\int (g+h x)^m (a+b \log (c (d (e+f x)^p)^q)) \, dx\)

Optimal. Leaf size=99 \[ \frac {(g+h x)^{m+1} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h (m+1)}+\frac {b f p q (g+h x)^{m+2} \, _2F_1\left (1,m+2;m+3;\frac {f (g+h x)}{f g-e h}\right )}{h (m+1) (m+2) (f g-e h)} \]

[Out]

b*f*p*q*(h*x+g)^(2+m)*hypergeom([1, 2+m],[3+m],f*(h*x+g)/(-e*h+f*g))/h/(-e*h+f*g)/(1+m)/(2+m)+(h*x+g)^(1+m)*(a
+b*ln(c*(d*(f*x+e)^p)^q))/h/(1+m)

________________________________________________________________________________________

Rubi [A]  time = 0.11, antiderivative size = 99, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {2395, 68, 2445} \[ \frac {(g+h x)^{m+1} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h (m+1)}+\frac {b f p q (g+h x)^{m+2} \, _2F_1\left (1,m+2;m+3;\frac {f (g+h x)}{f g-e h}\right )}{h (m+1) (m+2) (f g-e h)} \]

Antiderivative was successfully verified.

[In]

Int[(g + h*x)^m*(a + b*Log[c*(d*(e + f*x)^p)^q]),x]

[Out]

(b*f*p*q*(g + h*x)^(2 + m)*Hypergeometric2F1[1, 2 + m, 3 + m, (f*(g + h*x))/(f*g - e*h)])/(h*(f*g - e*h)*(1 +
m)*(2 + m)) + ((g + h*x)^(1 + m)*(a + b*Log[c*(d*(e + f*x)^p)^q]))/(h*(1 + m))

Rule 68

Int[((a_) + (b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((b*c - a*d)^n*(a + b*x)^(m + 1)*Hype
rgeometric2F1[-n, m + 1, m + 2, -((d*(a + b*x))/(b*c - a*d))])/(b^(n + 1)*(m + 1)), x] /; FreeQ[{a, b, c, d, m
}, x] && NeQ[b*c - a*d, 0] &&  !IntegerQ[m] && IntegerQ[n]

Rule 2395

Int[((a_.) + Log[(c_.)*((d_) + (e_.)*(x_))^(n_.)]*(b_.))*((f_.) + (g_.)*(x_))^(q_.), x_Symbol] :> Simp[((f + g
*x)^(q + 1)*(a + b*Log[c*(d + e*x)^n]))/(g*(q + 1)), x] - Dist[(b*e*n)/(g*(q + 1)), Int[(f + g*x)^(q + 1)/(d +
 e*x), x], x] /; FreeQ[{a, b, c, d, e, f, g, n, q}, x] && NeQ[e*f - d*g, 0] && NeQ[q, -1]

Rule 2445

Int[((a_.) + Log[(c_.)*((d_.)*((e_.) + (f_.)*(x_))^(m_.))^(n_)]*(b_.))^(p_.)*(u_.), x_Symbol] :> Subst[Int[u*(
a + b*Log[c*d^n*(e + f*x)^(m*n)])^p, x], c*d^n*(e + f*x)^(m*n), c*(d*(e + f*x)^m)^n] /; FreeQ[{a, b, c, d, e,
f, m, n, p}, x] &&  !IntegerQ[n] &&  !(EqQ[d, 1] && EqQ[m, 1]) && IntegralFreeQ[IntHide[u*(a + b*Log[c*d^n*(e
+ f*x)^(m*n)])^p, x]]

Rubi steps

\begin {align*} \int (g+h x)^m \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right ) \, dx &=\operatorname {Subst}\left (\int (g+h x)^m \left (a+b \log \left (c d^q (e+f x)^{p q}\right )\right ) \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {(g+h x)^{1+m} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h (1+m)}-\operatorname {Subst}\left (\frac {(b f p q) \int \frac {(g+h x)^{1+m}}{e+f x} \, dx}{h (1+m)},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {b f p q (g+h x)^{2+m} \, _2F_1\left (1,2+m;3+m;\frac {f (g+h x)}{f g-e h}\right )}{h (f g-e h) (1+m) (2+m)}+\frac {(g+h x)^{1+m} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )\right )}{h (1+m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 0.12, size = 86, normalized size = 0.87 \[ \frac {(g+h x)^{m+1} \left (a+b \log \left (c \left (d (e+f x)^p\right )^q\right )+\frac {b f p q (g+h x) \, _2F_1\left (1,m+2;m+3;\frac {f (g+h x)}{f g-e h}\right )}{(m+2) (f g-e h)}\right )}{h (m+1)} \]

Antiderivative was successfully verified.

[In]

Integrate[(g + h*x)^m*(a + b*Log[c*(d*(e + f*x)^p)^q]),x]

[Out]

((g + h*x)^(1 + m)*(a + (b*f*p*q*(g + h*x)*Hypergeometric2F1[1, 2 + m, 3 + m, (f*(g + h*x))/(f*g - e*h)])/((f*
g - e*h)*(2 + m)) + b*Log[c*(d*(e + f*x)^p)^q]))/(h*(1 + m))

________________________________________________________________________________________

fricas [F]  time = 0.49, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (h x + g\right )}^{m} b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + {\left (h x + g\right )}^{m} a, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)^m*(a+b*log(c*(d*(f*x+e)^p)^q)),x, algorithm="fricas")

[Out]

integral((h*x + g)^m*b*log(((f*x + e)^p*d)^q*c) + (h*x + g)^m*a, x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right ) + a\right )} {\left (h x + g\right )}^{m}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)^m*(a+b*log(c*(d*(f*x+e)^p)^q)),x, algorithm="giac")

[Out]

integrate((b*log(((f*x + e)^p*d)^q*c) + a)*(h*x + g)^m, x)

________________________________________________________________________________________

maple [F]  time = 0.40, size = 0, normalized size = 0.00 \[ \int \left (b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )+a \right ) \left (h x +g \right )^{m}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((h*x+g)^m*(b*ln(c*(d*(f*x+e)^p)^q)+a),x)

[Out]

int((h*x+g)^m*(b*ln(c*(d*(f*x+e)^p)^q)+a),x)

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ b {\left (\frac {{\left (h x + g\right )} {\left (h x + g\right )}^{m} \log \left ({\left ({\left (f x + e\right )}^{p}\right )}^{q}\right )}{h {\left (m + 1\right )}} + \int -\frac {{\left (f g p q - e h {\left (m + 1\right )} \log \relax (c) - {\left (m q + q\right )} e h \log \relax (d) + {\left (f h p q - f h {\left (m + 1\right )} \log \relax (c) - {\left (m q + q\right )} f h \log \relax (d)\right )} x\right )} {\left (h x + g\right )}^{m}}{f h {\left (m + 1\right )} x + e h {\left (m + 1\right )}}\,{d x}\right )} + \frac {{\left (h x + g\right )}^{m + 1} a}{h {\left (m + 1\right )}} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)^m*(a+b*log(c*(d*(f*x+e)^p)^q)),x, algorithm="maxima")

[Out]

b*((h*x + g)*(h*x + g)^m*log(((f*x + e)^p)^q)/(h*(m + 1)) + integrate(-(f*g*p*q - e*h*(m + 1)*log(c) - (m*q +
q)*e*h*log(d) + (f*h*p*q - f*h*(m + 1)*log(c) - (m*q + q)*f*h*log(d))*x)*(h*x + g)^m/(f*h*(m + 1)*x + e*h*(m +
 1)), x)) + (h*x + g)^(m + 1)*a/(h*(m + 1))

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (g+h\,x\right )}^m\,\left (a+b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )\right ) \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g + h*x)^m*(a + b*log(c*(d*(e + f*x)^p)^q)),x)

[Out]

int((g + h*x)^m*(a + b*log(c*(d*(e + f*x)^p)^q)), x)

________________________________________________________________________________________

sympy [F(-2)]  time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: HeuristicGCDFailed} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((h*x+g)**m*(a+b*ln(c*(d*(f*x+e)**p)**q)),x)

[Out]

Exception raised: HeuristicGCDFailed

________________________________________________________________________________________